package com.example.itcompanyinterview.object;

import java.io.Serializable;

public class Problem implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int id;
	private int subCategoryId;
	private String title;
	private String content;
	private String answer;
	
	public Problem(int pid, int subcid, String ptitle) {
		this.id = pid;
		this.subCategoryId = subcid;
		this.title = ptitle;
		this.content = "";
		this.answer = "";
	}
	
	@Override
	public String toString() {
		return this.title;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getSubCategoryId() {
		return subCategoryId;
	}

	public void setSubCategoryId(int subCategoryId) {
		this.subCategoryId = subCategoryId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}
}
